<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../inclued/base.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="../css/style.css">
	<link rel="stylesheet" href="../css/font-awesome.css">
  <link rel="stylesheet" href="../js/redactor/redactor.css">
  <style>
    .content{
       margin-left: 192px; 
       min-height: 700px;
    }
  </style>
</head>
<body>
	<%@ include file="inclued/top.jsp"%>
	<%@ include file="inclued/left.jsp"%>
    <!--right -->
<div class="content">
        
        <div class="header">
           <!--  <div class="stats">
               <p class="stat"><span class="number">53</span>tickets</p>
               <p class="stat"><span class="number">27</span>tasks</p>
               <p class="stat"><span class="number">15</span>waiting</p>
           </div> -->

            <h1 class="page-title">Home</h1>
        </div>
        
        <ul class="breadcrumb">
            <li><a href="login.jspx">Home</a> <span class="divider">/</span></li>
            <li class="active">商品系统<span class="divider">/</span></li>
            <li><a href="product.jspx">商品管理</a> <span class="divider">/</span></li>
            <li class="active">新增商品</li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">

                <div class="page-header">
                  <h4><i class="icon-plus"></i> 新增商品</h4>
                </div>
                <form class="form-horizontal" action="bookAdd.jspx" method="post" enctype="multipart/form-data">
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">书籍名称</label>
                    <div class="controls">
                      <input type="text" name="bookname">
                    </div>
                  </div>
                  
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">出版社</label>
                    <div class="controls">
                      <select name="pubid">
                      	<c:forEach items="${publishList}" var="p">
                      		<option value="${p.id }">${p.pubname }</option>
                      	</c:forEach>
                      </select>
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">作者</label>
                    <div class="controls">
                      <input type="text" name="author">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">原价</label>
                    <div class="controls">
                      <input type="text" name="price">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">商城价</label>
                    <div class="controls">
                      <input type="text" name="salesprice">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">所属类别</label>
                    <div class="controls">
                      <select name="typeid" id="">
                      	<c:forEach items="${bookTypeList }" var="bt">
                        	<option value="${bt.id }">${bt.typeName }</option>
                        </c:forEach>
                      </select>
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">出版时间</label>
                    <div class="controls">
                      <input type="text" name="pubdate">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">页数</label>
                    <div class="controls">
                      <input type="text" name="pagenum">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">入库数量</label>
                    <div class="controls">
                      <input type="text" name="num">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">警戒数量</label>
                    <div class="controls">
                      <input type="text" name="dangenum">
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">内容简介</label>
                    <div class="controls">
                      <textarea name="content" id="" class="redactor-text"></textarea>
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">作者简介</label>
                    <div class="controls">
                      <textarea name="authorcontent" id="" class="redactor-text"></textarea>
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">前言</label>
                    <div class="controls">
                      <textarea name="preface" id="" class="redactor-text"></textarea>
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="inputEmail">封面图片</label>
                    <div class="controls">
                      <input type="file" name="pic" id="">
                      <span class="help-block">推荐使用280px X 280px 像素的图片</span>
                    </div>
                  </div>
                  <div class="control-group">
                    <div class="controls">
                      <button type="submit" class="btn btn-primary">添加</button>
                    </div>
                  </div>
                </form>
        


                    
               <footer>
                  <hr>
                  <p>© 2012 <a href="http://weibo.com/u/2821897085?wvr=5&lf=reg" target="_blank">风哥制作</a></p>
              </footer>
                    
            </div>
        </div>
    </div>


	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>

  <script type="text/javascript" src="../js/redactor/redactor.js"></script>
  	<script type="text/javascript" src="../js/redactor/zh_cn.js"></script>
	  <script type="text/javascript">
	    $(document).ready(function(){
	    	$('.redactor-text').redactor({ 
	            lang: 'zh_cn',
	            buttons: [ 'bold', 'italic', 'deleted', '|',
	    'unorderedlist', 'orderedlist', 'outdent', 'indent', '|', 'link', '|','fontcolor', 'backcolor', '|', 'alignment', '|', 'horizontalrule']
	           });
	    });
	  </script>
</body>
</html>
